<template>
  <div>
    <div class="act_img">
      <img src="@/assets/images/managercomfirm/haveone.png" @click="jump('1')" alt />
      <img src="@/assets/images/managercomfirm/yiyuan.png" @click="jump('2')" alt />
      <img src="@/assets/images/managercomfirm/zhongyou.png" @click="jump('3')" alt />
    </div>
    <div class="mask" v-if="actsucce">
      <div class="waititem">
        <div class="items">
          <p>温馨提示</p>
          <p>您有客户活动资格待确认</p>
        </div>
        <div @click="actsucce =false" class="itembtn">我知道了</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      actsucce: false
    };
  },
  mounted() {
    // this.initWxChat();
    this.$http
      .post('/oneYuanPurchase/getCheckList', {
        type: '0'
      })
      .then(res => {
        if (res.data.object.length > 0) {
          this.actsucce = true;
        }
      });
  },
  methods: {
    jump(page) {
      if (page === '1') {
        this.$router.push('tocomfirm');
      } else if (page === '2') {
        this.$router.push('onstation');
      } else if (page === '3') {
        this.$router.push('chinapost');
      }
    }
  },
  components: {}
};
</script>
<style lang="scss" scoped>
.act_img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  img {
    width: 710px;
    margin-top: 30px;
  }
}
.mask {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  .waititem {
    width: 601px;
    height: 312px;
    background-color: #ffffff;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    .items {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 601px;
      height: 213px;
      border-bottom: 1px solid #d9d9d9;
      :first-child {
        font-size: 30px;
        color: #282828;
      }
      :nth-child(2),
      :nth-child(3) {
        margin-top: 20px;
        font-size: 26px;
        color: #282828;
      }
    }
    .itembtn {
      height: 98px;
      line-height: 98px;
      text-align: center;
      font-size: 36px;
      color: #54c5ff;
    }
  }
}
</style>
